Close Project

I'm sure there's an easy fix for this, but I can't find it.  I'm working with archiving projects, but I want to be able to call the program from the User tab in the menubar.  I have found a way to do this, by calling it from the menubar when I am working in a module in a different project.  Is there any way that I can run the program from the menubar when I have a module open in the project that I am attempting to archive?  I know I can do something like:

Project p

project m = current

close(m)

But that only closes the module, not the project.  I have been through the DXL manual for hours trying to find if there is a way to close a project, but I can't find it anywhere.  Does anyone have any secret function that will close a project?  Or is the function not secret, am I just missing it?

Thanks!


josiah820 - Thu May 23 11:52:18 EDT 2013

Re: Close Project
llandale - Thu May 23 12:57:30 EDT 2013

Project "Open" and "Close" are residual artifacts from DOORS v4.

You need to change your current folder, this should work:

  • current = folder("/")

There may be a problem in "Project View"; it seems to set the 1st project current.

  • current = folder("/NameOf_SomeOtherProject")

-Louie

Re: Close Project
josiah820 - Thu May 23 13:24:28 EDT 2013

llandale - Thu May 23 12:57:30 EDT 2013

Project "Open" and "Close" are residual artifacts from DOORS v4.

You need to change your current folder, this should work:

  • current = folder("/")

There may be a problem in "Project View"; it seems to set the 1st project current.

  • current = folder("/NameOf_SomeOtherProject")

-Louie

would a

current = folder(null)

function call work just as well?  This will be running on multiple machines for multiple folders, so I don't want to limit it to only work on computers that have the folder I specified.

Re: Close Project
llandale - Thu May 23 16:16:04 EDT 2013

josiah820 - Thu May 23 13:24:28 EDT 2013

would a

current = folder(null)

function call work just as well?  This will be running on multiple machines for multiple folders, so I don't want to limit it to only work on computers that have the folder I specified.

I have never seen a situation where there was no "current Folder". 

OK, did some experimenting and I could not actually update the explorer display, but the following seems to work for purposes of your script:

  • toggleDatabaseView()
  • setCurrentFolder_(folder "/")
  • refreshDBExplorer()                     // This doesn't do anything

It seems the current folder is the root folder for the rest of the script; but the explorer is not udpated so your previous folder becomes "current" when the script ends.  Curious.

-Louie

 

 

Re: Close Project
josiah820 - Fri May 24 13:13:20 EDT 2013

llandale - Thu May 23 16:16:04 EDT 2013

I have never seen a situation where there was no "current Folder". 

OK, did some experimenting and I could not actually update the explorer display, but the following seems to work for purposes of your script:

  • toggleDatabaseView()
  • setCurrentFolder_(folder "/")
  • refreshDBExplorer()                     // This doesn't do anything

It seems the current folder is the root folder for the rest of the script; but the explorer is not udpated so your previous folder becomes "current" when the script ends.  Curious.

-Louie

 

 

Hmm, I couldn't get that to work, but it's okay, it's just a minor issue of making sure that the user is in a different project when they start the extract.

Thanks for your help!

Re: Close Project
llandale - Sat May 25 15:46:11 EDT 2013

josiah820 - Fri May 24 13:13:20 EDT 2013

Hmm, I couldn't get that to work, but it's okay, it's just a minor issue of making sure that the user is in a different project when they start the extract.

Thanks for your help!

Hmmmm, so it changes the "current folder" for the current script, but you STILL have it open in the GUI.

Sure seems to me I've solved this problem in the past...  Tried for a while today but failed.  Curious.

Cannot find the "Lock" that you have when the project is open.

-Louie